package com.PMSys.Servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Servlet implementation class ProbationServlet
 */
public class ProbationServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ProbationServlet() {
        super();
        
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		response.setContentType("text/html; charset=UTF-8");
		
		
		String s_id = request.getParameter("s_id");
		String s_name = request.getParameter("s_name");
		String d_name = request.getParameter("d_name");
		String p_name = request.getParameter("p_name");
		String pro_assessment_comments = request.getParameter("pro_assessment_comments");
		String pro_start_date = request.getParameter("pro_start_date");
		String pro_end_date = request.getParameter("pro_end_date");
		
		System.out.println(s_id);
		System.out.println(s_name);
		System.out.println(d_name);
		System.out.println(p_name);
		System.out.println(pro_assessment_comments);
		System.out.println(pro_start_date);
		System.out.println(pro_end_date);
		
		
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
